{{define "Title"}}下载{{end}}
{{define "ContentWidth"}}12{{end}}
{{define "Breadcrumb"}}
<ul class="breadcrumb">
  <li><a href="/"><i class="glyphicon glyphicon-home"></i> 首页</a></li>
  <li class="active">下载</li>
</ul>
{{end}}
{{define "Content"}}
<div class="content">
  <div class="page-header">
	<h1>Golang下载</h1>
	<div class="alert alert-info" role="alert">
	  如果下载速度比较慢，可以用下载工具；<br>
	  新增了百度云盘下载：<a href="http://pan.baidu.com/s/1pL0Ca4V">http://pan.baidu.com/s/1pL0Ca4V</a>。
	</div>
  </div>
  <div class="panel-group" id="accordion">
	{{range $index, $version := .versions}}
	<div class="panel panel-default">
	  <div class="panel-heading">
		<h4 class="panel-title">
		  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$index}}">
			{{$version.Name}}
		  </a>
		</h4>
	  </div>
	  <div id="collapse{{$index}}" class="accordion-body collapse{{if not $index}} in{{end}}">
		<div class="accordion-inner">
		  <table class="table table-striped table-hover table-condensed">
			<thead>
			  <th>Filename</th>
			  <th>Size</th>
			  <th>Download</th>
			</thead>
			<tbody>
			  {{range $version.Files}}
			  <tr>
				<td>{{.Filename}}</td>
				<td>{{.HumanSize}}</td>
				<td>
				  <a href="/static/go/{{$version.Name}}/{{.Filename}}" class="btn btn-xs btn-info">本地下载</a>
				</td>
			  </tr>
			  {{end}}
			</tbody>
		  </table>
		</div>
	  </div>
	</div>
	{{end}}
  </div>
</div>
{{end}}

{{define "LeftSide"}}{{end}}

{{define "RightSide"}}
{{end}}
